package chapter04.Example20_23;


class Outer{
    int m =0;
    void t1(){
        System.out.println("t1");
    }
    static class IS{
        int n =1;
        void show(){
            System.out.println("我是静态内部类IS");
        }
        static void s(){
            System.out.println("静态方法s()");
        }
    }
    class Inner{
        int n =1;
        void show1(){
            System.out.println("m="+m);
            t1();
        }
        void show2(){
            System.out.println("show2()");
        }
    }
    void t2(){
        Inner inner = new Inner();
        System.out.println("Inner.n=" + inner.n);
        inner.show2();
    }
}
public class Example20 {
    public static void main(String[] args) {
        Outer outer = new Outer();
        Outer.Inner inner = outer.new Inner();
        inner.show1();
        outer.t2();
        Outer.IS is = new Outer.IS();
        System.out.println(is.n);
        Outer.IS.s();
    }
}
